using System.Collections.Generic;
using Common.Model;

namespace Common.Dao.Impl
{
    public class Repository : IRepository
    {
        public HibernateDaoSupportEx DaoSupport { get; set; }

        public IList<TEntity> LoadAll<TEntity, TKey>() where TEntity:Entity<TKey>
        {
            return DaoSupport.GetHibernateTemplateEx().LoadAll<TEntity>();
        }
    }
}